package com.yiyuan.app.entity.param;

import com.guaike.core.entity.annotation.IsDictValue;
import com.yiyuan.app.entity.constant.BusinessDictCodeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("房间列表请求入参")
public class RoomListDTO implements Serializable {

    private static final long serialVersionUID = 1983879536575766072L;

    @ApiModelProperty(value = "房间类型(0:推币机，1：街机，2：娱乐)", required = true)
    @NotNull(message = "房间类型不能为空")
    @IsDictValue(code = BusinessDictCodeConstant.ROOM_TYPE, message = "房间类型不存在")
    private Integer roomType;

    @ApiModelProperty(value = "倍数类型(0:低倍场，1：高倍场)", required = true)
    @NotNull(message = "倍数类型不能为空")
    @IsDictValue(code = BusinessDictCodeConstant.ROOM_MULTIPLE_TYPE, message = "倍数类型不正确")
    private Integer multipleType;

    @ApiModelProperty(value = "排序类型(0:默认排序，1：空闲置顶)")
    private Integer rankType = 0;
}
